#include "e2d/yml/render/Serializer.h"

using Serializer = e2d::BasicSerializer;

template<>
void Serializer::Encode<e2d::SkyboxView>(YAML::Node& node, const e2d::SkyboxView& inst)
{
	Encode<e2d::Object>(node, inst);
	SetVariable<e2d::TextureCubeMap>(node, "m_SkyboxTexture", inst.m_SkyboxTexture);

}


template<>
bool Serializer::Decode<e2d::SkyboxView>(const YAML::Node& node, e2d::SkyboxView& inst)
{
	Decode<e2d::Object>(node, inst);
	GetVariable<e2d::TextureCubeMap>(node, "m_SkyboxTexture", inst.m_SkyboxTexture);
	return true;
}
